package services

import (
	"golang.org/x/oauth2"
	"golang.org/x/oauth2/google"
	"login/src/conf"
)

func Init() {
	oauth2Config = oauth2.Config{
		ClientID:     conf.GetConf().Google.ClientID,
		ClientSecret: conf.GetConf().Google.ClientSecret,
		RedirectURL:  conf.GetConf().Google.RedirectURL,
		Scopes:       []string{"https://www.googleapis.com/auth/userinfo.email"},
		Endpoint:     google.Endpoint,
	}
	oauthStateString = "saipo_platform_google_auth"
}
